//
//  AYHomeRouter.swift
//  AYHome
//
//  Created by amg on 2021/4/6.
//

import Foundation
import URLNavigator

public struct AYHomeRouter {
    
    public static func initialize(navigator: NavigatorType) {
        
     /// 跳转到商品列表 界面
        navigator.register("productvc".formatScheme()) { url, values ,context in
            let productVc:AYProductVc = AYHomeCore.productVc as! AYProductVc
            return productVc
        }
        
        navigator.register("homevc".formatScheme()) { url, values ,context in
            let homeVc:AYHomeVc = AYHomeCore.homeVc as! AYHomeVc
            return homeVc
        }
 
    }
}
